{extend name="../front" /}
{block name="main"}
<main class="container">
  <div class="card card-with mb-3">
    <div class="card-body">
      <h2 class="card-title">{$tag_name}</h2>
      <p class="card-text text-muted small">{$tag_excerpt}</p>
      {volist name="data" id="item"}
      {include file='item' /}
      {/volist}
    </div>
  </div>
  {if $pages}
  <div class="rounded bg-white p-3 mb-3">{$pages|raw}</div>
  {/if}
  <div class="card card-with">
    <div class="card-body">
      <h2 class="card-title">人气排行</h2>
      {volist name=":model('blog/Index','loglic')->itemsTag($tag_id,10,'detail_view')" id="item"}
      {include file='item' /}
      {/volist}
    </div>
  </div>
</main>
{/block}